<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<%@include file="ValidarSession.jsp"%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Agregar Poderes</title>

<script>

function validar(){
var cod = document.apoder.txtcodigo.value;
var nom = document.apoder.txtnombre.value;


if (cod == ""){
alert("Ingrese un Codigo Corto de Poder");
return false;
}

if (nom == ""){
alert("Ingrese Nombre del Poder ");
return false;
}

}


</script>  


<link href="css/stylescheet.css" rel="stylesheet" type="text/css" />
</head>

<body>

       <form action="PoderInsertarServlet" method="post" name="apoder" onsubmit="return validar();">
	
    	 <table width="100%">
				<tr>     
                <td colspan="2" valign="top">
     
                <div class="title">Agregar Poderes</div>                </td>
                </tr>
                <tr>
                  <td width="19%" valign="top">&nbsp;</td>
                  <td width="81%" align="left">&nbsp;</td>
                </tr>
                <tr>
                  <td valign="top">Codigo</td>
                  <td align="left"><input type="text" name="txtcodigo" id="txtcodigo" /></td>
                </tr>
                <tr>
                  <td valign="top">Nombre</td>
                  <td align="left"><input type="text" name="txtnombre" id="txtnombre" /></td>
                </tr>
                <tr>
                  <td valign="top">Tipo</td>
                  <td align="left">
                  
               <select name="tipo">
			<option value="Activo">Activo</option>
			<option value="Pasivo">Pasivo</option>	
			</select>
                  
                  
                  </td>
                </tr>
                
                <tr>
                  <td valign="top">&nbsp;</td>
                  <td align="left"><label>
                    <input type="submit" name="Grabar" id="Grabar" value="Enviar" />
                  </label></td>
                </tr>     
                </table>
	</form>


</body>
</html>
